package huawei_nowcoder;

import java.util.Scanner;

/**
 * @order  4
 * @decription 字符串分隔
 */
public class StringDivision {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);

        while (scanner.hasNext()){
            String str=scanner.nextLine();
            int str_length=str.length();
            int start=0,end=8;
            //字符串大于8位 切割
            while (str_length>8){
                System.out.println(str.substring(start,end));
                start+=8;
                end+=8;
                str_length-=8;
            }
            //小于8位补0
            String lastString=str.substring(start,str.length());
            StringBuffer sb=new StringBuffer(lastString);
            int n=8-sb.length();
            for (int j = 0; j < n; j++) {
                sb.append("0");
            }
            System.out.println(sb);
        }
    }
}
